import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/:pathMatch(.*)*', redirect: '/' },
    {
      path: '/',
      name: 'layout',
      component: () => import('../views/layout/index.vue'),
    },
    {
      path: '/home',
      name: 'home',

      component: () => import('../views/home/index.vue'),
    },
   
     {
      path: '/login',
      name: 'login',

      component: () => import('../views/login/index.vue'),
    },
     {
      path: '/roomlist',
      name: 'roomlist',

      component: () => import('../views/roomlist/index.vue'),
    },
     {
      path: '/404',
      name: '404',

      component: () => import('../views/404/index.vue'),
    },
     {
      path: '/403',
      name: '403',

      component: () => import('../views/403/index.vue'),
    },
  ],
})

export default router
